from unit_02.Page.Page import Page
from selenium.webdriver.common.by import By

class Page2(Page):
    # 定位元素
    # 封装操作的元素的方法
    # 悬浮 我的酒仙
    xf_loc = (By.XPATH, '/html/body/div[2]/div/div[2]/ul/li[1]/div[1]/a')
    def xf_wdjx(self):
        self.move_to_element(self.xf_loc)

   # 2.点击我的订单
    order_loc = (By.LINK_TEXT, '我的订单')
    def click_order(self):
        self.click(self.order_loc)

    # 2.点击取消订单
    qxdd_loc=(By.XPATH,'/html/body/div[5]/div[3]/div[3]/div/div/div/table/tbody/tr/td[5]/p[3]/a')
    def click_qxdd(self):
        self.click(self.qxdd_loc)

    # 3.点击确定按钮 class="sure"
    qd_loc=(By.CLASS_NAME,'sure')
    def click_qd(self):
        self.click(self.qd_loc)


















